package com.leepood.pihomecontrol.util;

import com.leepood.pihomecontrol.socket.Cmd;

public class MsgUtil {

	/* 4byte */
	public static final byte[] MSG_HEAD = { (byte) 0xAA, (byte) 0xAA,
			(byte) 0xAA, (byte) 0xAA };

	/* 4byte */
	public static final byte[] MSG_TAIL = { (byte) 0xFF, (byte) 0xFF,
			(byte) 0xFF, (byte) 0xFF };

	/**
	 * construct a new message
	 * 
	 * @param cmd
	 *            type of command
	 * @param value
	 *            content of command
	 * @return
	 */
	public static byte[] constructMsg(Cmd cmd, byte[] value) {
		return null;
	}

	// public static byte[] checkSum(byte){
	// return null;
	// }

}
